<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>计算远程DH密钥(公钥)和本地DH密钥的共享密钥</title>
 </head>
 <body class="docs"><div id="layout">
  <div id="layout-content"><div id="function.openssl-dh-compute-key" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">openssl_dh_compute_key</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.3.0, PHP 7)</p><p class="refpurpose"><span class="refname">openssl_dh_compute_key</span> &mdash; <span class="dc-title">计算远程DH密钥(公钥)和本地DH密钥的共享密钥</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.openssl-dh-compute-key-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>openssl_dh_compute_key</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$pub_key</code></span>
   , <span class="methodparam"><span class="type">resource</span> <code class="parameter">$dh_key</code></span>
   ) : <span class="type">string</span></div>


  <div class="warning"><strong class="warning">Warning</strong><p class="simpara">本函数还未编写文档，仅有参数列表。</p></div>

 </div>


 <div class="refsect1 parameters" id="refsect1-function.openssl-dh-compute-key-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<code class="parameter">pub_key</code></dt>

     <dd>

      <p class="para">
       公钥
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">dh_key</code></dt>

     <dd>

      <p class="para">
       DH 密钥
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.openssl-dh-compute-key-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   成功，返回计算的密钥， 或者在失败时返回 <strong><code>FALSE</code></strong>.
  </p>
 </div>


</div></div></div></body></html>